package com.learnjava.learnjava1.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(title = "Компании")
public class CompanyDTO {

    private Long id;
    @NotBlank
    private String title;

    @NotNull
    @AssertTrue
    private Boolean isActive;

}
